<?php
namespace User\Repository;

use Doctrine\ORM\EntityRepository;
use User\Entity\User;


class UserRepository extends EntityRepository {
    /**
     * 
     * @param string $login
     * @return User|null
     */
    public function findUserByLogin($login) {
        return $this->findOneBy(array('login' => $login));
    }
}
